package dada_tool;

import java.util.List;
import java.util.Map;

import dada_tool.User;


public class UserService {
	
	public List<Map<String, Object>> listUser(){
		return new UserDao().findAll();
	}
	
	public boolean editUSer(User user) {
		int count= new UserDao().addUser(user);
		return count>0;
		
	}

}
